package com.blrs.service.enterprise.seas.impl;

import java.util.List;

import com.blrs.mapper.HighSeasMapper;
import com.blrs.service.enterprise.seas.IHighSeaRecordService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.blrs.mapper.HighSeaRecordMapper;
import com.blrs.domain.HighSeaRecord;


/**
 * 公海记录进展Service业务层处理
 * 
 * @author yang
 * @date 2023-09-28
 */
@Service
public class HighSeaRecordServiceImpl implements IHighSeaRecordService
{
    @Autowired
    private HighSeaRecordMapper highSeaRecordMapper;
    @Autowired
    private HighSeasMapper highSeasMapper;

    /**
     * 查询公海记录进展
     * 
     * @param recordsId 公海记录进展主键
     * @return 公海记录进展
     */
    @Override
    public HighSeaRecord selectHighSeaRecordByRecordsId(String recordsId)
    {
        return highSeaRecordMapper.selectHighSeaRecordByRecordsId(recordsId);
    }

    /**
     * 查询公海记录进展列表
     * 
     * @param highSeaRecord 公海记录进展
     * @return 公海记录进展
     */
    @Override
    public List<HighSeaRecord> selectHighSeaRecordList(HighSeaRecord highSeaRecord)
    {
        return highSeaRecordMapper.selectHighSeaRecordList(highSeaRecord);
    }

    /**
     * 新增公海记录进展
     * 
     * @param highSeaRecord 公海记录进展
     * @return 结果
     */
    @Override
    public int insertHighSeaRecord(HighSeaRecord highSeaRecord)
    {

        return highSeaRecordMapper.insertHighSeaRecord(highSeaRecord);
    }

    /**
     * 修改公海记录进展
     * 
     * @param highSeaRecord 公海记录进展
     * @return 结果
     */
    @Override
    public int updateHighSeaRecord(HighSeaRecord highSeaRecord)
    {
        return highSeaRecordMapper.updateHighSeaRecord(highSeaRecord);
    }

    /**
     * 批量删除公海记录进展
     * 
     * @param recordsIds 需要删除的公海记录进展主键
     * @return 结果
     */
    @Override
    public int deleteHighSeaRecordByRecordsIds(String[] recordsIds)
    {
        return highSeaRecordMapper.deleteHighSeaRecordByRecordsIds(recordsIds);
    }

    /**
     * 删除公海记录进展信息
     * 
     * @param recordsId 公海记录进展主键
     * @return 结果
     */
    @Override
    public int deleteHighSeaRecordByRecordsId(Long recordsId)
    {
        return highSeaRecordMapper.deleteHighSeaRecordByRecordsId(recordsId);
    }
}
